import request from "@/utils/request";

// 查询人员信息（不分页）
export function listPerson(query) {
  return request({
    url: "/staff/staff/listAll",
    method: "get",
    params: query
  });
}

//查询仪器信息列表
export function getList(query) {
  return request({
    url: "/instrument/instrument/list",
    method: "get",
    params: query,
  });
}
//人员信息列表查询
export function getryList(query) {
  return request({
    url: `/system/user/list`,
    method: "get",
    params: query,
  });
}
//人员添加
export function addList(data) {
  return request({
    url: `/system/user`,
    method: "post",
    data: data,
  });
}
//人员修改
export function updateList(data) {
  return request({
    url: `/system/user`,
    method: "put",
    data: data,
  });
}
//人员单条查询
export function updatedtList(id) {
  return request({
    url: `/system/user/` + id,
    method: "get",
  });
}
//人员全部查询
export function updatedtallList(query) {
  return request({
    url: `/system/user/listAll`,
    method: "get",
    params: query,
  });
}

// 删除人员信息
export function delList(id) {
  return request({
    url: '/system/user/' + id,
    method: 'delete'
  })
}




//查询员工分销明细
export function getDeatil(id, query) {
  return request({
    url: `/admin/storeUser/getStaffClerkBalanceRecord/${id}`,
    method: "get",
    params: query,
  });
}

